package com.dbh.alg.algorithm.recursion;

import org.junit.jupiter.api.Test;

import static org.junit.jupiter.api.Assertions.assertEquals;

/**
 *
 * @author 董帮辉
 * @date 2025/4/19
 **/
public class OfflineE03BinarySearch {

    @Test
    public void test1() {
        int[] arr = {1, 4, 6, 8, 9, 10, 45};
        assertEquals(1, E03BinarySearch.binarySearch(arr, 4));
    }

}
